<template>
  <div>
    <van-tabbar v-model="active" v-show="$route.meta.TabbarShow" active-color="#ee0a24" inactive-color="#000" route fixed >
      <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/diary" icon="notes-o">游记</van-tabbar-item>
      <van-tabbar-item replace to="/my" icon="manager-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
  <router-view/>
</template>
<script>
  import { ref } from 'vue';

  export default {
    setup() {
      const active = ref('home');
      return { active };
    },
  };
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

</style>
